﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Obfuscator
{
    public partial class GenerationSettings : Form
    {
        public bool IsObfuscateMethods { get; set; }
        public bool IsObfuscateTypes { get; set; }
        public bool IsObdfuscateProperties { get; set; }
        public bool IsObfuscateNamespaces { get; set; }


        public GenerationSettings()
        {
            InitializeComponent();
            chkObfuscateNamespaces.Checked = MainForm.checkSettingsObfuscate.ObfuscateNamespaces;
            chkObfuscateProperties.Checked = MainForm.checkSettingsObfuscate.ObfuscatechkProperties;
            chkObfuscateMethods.Checked = MainForm.checkSettingsObfuscate.ObfuscateMethods;
            chkObfuscateTypes.Checked = MainForm.checkSettingsObfuscate.ObfuscateTypes;


        }

        private void OkGenSettBtn_Click(object sender, EventArgs e)
        {
            IsObfuscateMethods = chkObfuscateMethods.Checked;
            IsObfuscateTypes = chkObfuscateTypes.Checked;
            IsObfuscateNamespaces = chkObfuscateNamespaces.Checked;
            IsObdfuscateProperties = chkObfuscateProperties.Checked;
            DialogResult = DialogResult.OK;
            Close();
        }

        private void CancelGenSettBtn_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
            Close();
        }



    }
}
